<template>
    <div>

      <!-- 面包屑导航条 -->
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/index' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item>发票管理</el-breadcrumb-item>
        <el-breadcrumb-item>发票记录</el-breadcrumb-item>
      </el-breadcrumb>

      <el-button type="primary" @click="goBack">返回</el-button>

      <el-card class="box-card">

        <el-table
          :data="orderLog"
          stripe
          style="width: 100%">
          <el-table-column
            prop="userName"
            label="操作人"
            width="180">
          </el-table-column>
          <el-table-column
            prop="code"
            label="发票编号"
            width="180">
          </el-table-column>
          <el-table-column
            label="创建时间"
            width="180">
            <template slot-scope="scope">
              {{scope.row.createDate | datefmt('YYYY-MM-DD HH:mm:ss')}}
            </template>
          </el-table-column>
          <el-table-column
            prop="remarks"
            label="操作说明">
          </el-table-column>
        </el-table>


      </el-card>



    </div>
</template>

<script>
    export default {
        name: "InvoiceLog",
      data(){
          return{
            orderLog:[]
          }
      },
      methods:{
          //列表
        searchList:function (id) {
          debugger;
          this.$http.get("/invoiceLog/list/"+id).then((res)=>{
            this.orderLog=res.data.result;
          });
        },
        //返回
        goBack:function () {
          this.$router.push('/invoiceList');
        }
      },
      mounted() {
          this.searchList(this.$route.query.id);
      }
    }
</script>

<style scoped>

</style>
